package com.xiangpq.pattern.structuralPatterns.proxyPattern;

/**
 * @author XPQ
 * @function
 * @since 2024-03-31
 */
public class ProxyPatternDemo {

    public static void main(String[] args) {
        Image image = new ProxyImage("test_10mb.jpg");

        // 图像从磁盘加载
        image.display();
        System.out.println();
        // 图像不需要从磁盘加载
        image.display();
    }
}
